<script type="text/javascript">/*<![CDATA[*/
function select_switch(status)
{
	for (i = 0; i < document.privmsg_list.length; i++)
	{
		document.privmsg_list.elements[i].checked = status;
	}
}
/*]]>*/</script>
<div class="table1">
<table border="0" cellspacing="0" cellpadding="0" align="center" width="100%">
  <tr>
    <td valign="top" width="100%">
<table style="height:54px; border:0; padding:10px">
 <tr>
  <td><span class="cattitle"><!-- IF S_FOLDER == 'inbox' -->[<a href="U_(&amp;folder=inbox)">L_(Inbox)</a>]<!-- ELSE --><a href="U_(&amp;folder=inbox)">L_(Inbox)</a><!-- ENDIF -->&nbsp;</span></td>
  <td><span class="cattitle"><!-- IF S_FOLDER == 'sentbox' -->[<a href="U_(&amp;folder=sentbox)">L_(Sentbox)</a>]<!-- ELSE --><a href="U_(&amp;folder=sentbox)">L_(Sentbox)</a><!-- ENDIF -->&nbsp;</span></td>
  <td><span class="cattitle"><!-- IF S_FOLDER == 'outbox' -->[<a href="U_(&amp;folder=outbox)">L_(Outbox)</a>]<!-- ELSE --><a href="U_(&amp;folder=outbox)">L_(Outbox)</a><!-- ENDIF -->&nbsp;</span></td>
  <td><span class="cattitle"><!-- IF S_FOLDER == 'savebox' -->[<a href="U_(&amp;folder=savebox)">L_(Savebox)</a>]<!-- ELSE --><a href="U_(&amp;folder=savebox)">L_(Savebox)</a><!-- ENDIF -->&nbsp;</span></td>
 </tr>
</table>
    </td>
    <td align="right">
      <!-- BEGIN switch_box_size_notice -->
      <table width="175" cellspacing="1" cellpadding="2" border="0" class="bodyline">
        <tr>
          <td colspan="3" class="row1" style="white-space:nowrap; width:100%;"><span class="gensmall">{BOX_SIZE_STATUS}</span></td>
        </tr>
        <tr>
          <td align="left" colspan="3" class="row2" style="width:100%;">
            <table cellspacing="0" cellpadding="1" border="0">
              <tr>
                <td style="background:{T_TD_COLOR2};"><img src="images/spacer.gif" width="{INBOX_LIMIT_IMG_WIDTH}" height="8" alt="{INBOX_LIMIT_PERCENT}" /></td>
              </tr>
            </table>
          </td>
        </tr>
        <tr>
          <td style="width:33%;" class="row1"><span class="gensmall">0%</span></td>
          <td style="width:34%;" align="center" class="row1"><span class="gensmall">50%</span></td>
          <td style="width:33%;" align="right" class="row1"><span class="gensmall">100%</span></td>
        </tr>
      </table>
      <!-- END switch_box_size_notice -->
    </td>
  </tr>
</table>

<br clear="all" />

<form method="post" name="privmsg_list" action="{FORM_ACTION}" enctype="multipart/form-data" accept-charset="utf-8">
  <table width="100%" cellspacing="2" cellpadding="2" border="0" align="center">
    <tr>

      <td align="left" valign="middle"><a href="U_(&amp;mode=post)">L_(Post_new_pm)</a></td>
      <td align="right" style="white-space:nowrap;"><span class="gensmall">L_(Display_messages):
        <select name="msgdays">{S_SELECT_MSG_DAYS}
        </select>
        <input type="submit" value="L_(GO)" name="submit_msgdays" class="liteoption" />
        </span></td>
    </tr>
  </table>

  <table border="0" cellpadding="3" cellspacing="1" width="100%" class="forumline">
    <tr>
      <th class="thTop" style="white-space:nowrap; width:55%;">&nbsp;L_(SUBJECT)&nbsp;</th>
			<th class="thTop" style="white-space:nowrap; width:20%;">&nbsp;<!-- IF S_FOLDER == 'inbox' || S_FOLDER == 'savebox' --> L_(FROM) <!-- ELSE --> L_(TO) <!-- ENDIF -->&nbsp;</th>
      <th class="thTop" style="white-space:nowrap; width:15%;">&nbsp;L_(DATE)&nbsp;</th>
      <th class="thCornerR" style="white-space:nowrap; width:5%;">&nbsp;L_(Mark)&nbsp;</th>
    </tr>
    <!-- BEGIN listrow -->
    <tr>
      <td style="width:55%;" valign="middle" class="{listrow.ROW_CLASS}"><span class="topictitle"><!-- IF listrow.PM_NEW_MAIL --><img src="{THEME_PATH}/images/new.gif" alt="L_(NEW)" style="vertical-align:middle"><!-- ENDIF -->&nbsp;<a href="{listrow.U_READ}" class="topictitle">{listrow.SUBJECT}</a></span></td>
      <td style="width:20%;" valign="middle" align="center" class="{listrow.ROW_CLASS}"><span class="name">&nbsp;<a href="{listrow.U_FROM_USER_PROFILE}" class="name">{listrow.FROM}</a></span></td>
      <td style="width:15%;" align="center" valign="middle" class="{listrow.ROW_CLASS}"><span class="postdetails">{listrow.DATE}</span></td>
      <td style="width:5%;" align="center" valign="middle" class="{listrow.ROW_CLASS}"><span class="postdetails">
        <input type="checkbox" name="mark[]2" value="{listrow.MSG_ID}" />
        </span></td>
    </tr>
    <!-- END listrow -->
    <!-- BEGIN switch_no_messages -->
    <tr>
      <td class="row1" colspan="5" align="center" valign="middle"><span class="gen">L_(No_messages_folder)</span></td>
    </tr>
    <!-- END switch_no_messages -->
    <tr>
      <td class="catBottom" colspan="5" align="right" style="height:28px;"> {S_HIDDEN_FIELDS}
        <input type="submit" name="save" value="L_(Save_marked)" class="mainoption" />
        &nbsp;
        <input type="submit" name="delete" value="L_(Delete_marked)" class="liteoption" />
        &nbsp;
        <input type="submit" name="deleteall" value="L_(Delete_all)" class="liteoption" />
      </td>
    </tr>
  </table>

  <table width="100%" cellspacing="2" border="0" align="center" cellpadding="2">
    <tr>
      <td align="left" valign="middle" width="100%"><!-- INCLUDE pagination.html --></td>
      <td align="right" valign="top" style="white-space:nowrap;"><b><span class="gensmall"><a href="javascript:select_switch(true);" class="gensmall">L_(Mark_all)</a> :: <a href="javascript:select_switch(false);" class="gensmall">L_(Unmark_all)</a></span></b><br /></td>
    </tr>
  </table>
</form>
</div>
